package com.huawang.mdesign.model.service.request;


import com.huawang.business.constants.ParamErrorConstants;
import com.huawang.business.dto.ProjectIdDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
public class CreateConstraintsDTO extends ProjectIdDTO {

    @NotBlank(message = ParamErrorConstants.NO_PROJECT_ID)
    private String projectId;

    @NotBlank(message = ParamErrorConstants.NO_INSTANCE_ID)
    private String instanceId;

    @Schema(title = "默认为0约束，1为时间段约束")
    private Integer constrainType = 0;

    @Schema(title = "应用的构造型")
    private List<String> appliedStereotypes;
}
